package com.example.arcapplication.http;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface Api {

    /**
     * 网络测试
     * @param url uapws/service/nc.ws.base.intf.IBusiPDABillService/getArriveorder
     */
    @Headers({"Content-Type:application/x-www-form-urlencoded", "Accept-Encoding:gzip,default"})
    @POST
    Call<String> getArriveOrder(@Url String url);

    // 存货编码|存货名称|打码日期|仓库编码|仓库名称|货位编码|货位名称|结存数量
    // 描述：增加功能，扫码后将条码上所有信息展示在APP上

    /**
     * 2.单据同步接口
     * PDA主动请求NC实时获取到货单信息。
     * @param s getArriveorder
     * @return call
     */
    //soap1.1
    @Headers({"Content-Type:application/x-www-form-urlencoded; charset=utf-8"})
    @POST("uapws/service/nc.ws.base.intf.IBusiPDABillService")
    Call<String> getArriveOrder12(@Body String s);

    /**
     * 3.上传库单接口
     * PDA主动请求NC实时将采购到货物资进行盘点入库。
     * @param s savePogeneral
     * @return
     */
    @Headers({"Content-Type:application/x-www-form-urlencoded;charset=UTF-8"})
    @POST("uapws/service/nc.ws.base.intf.IBusiPDABillService")
    Call<String> savePogeneral12(@Body String s);

    /**
     * 4.实时库存
     * @param s getOnhandnum
     * @return
     */
    @Headers({"Content-Type:application/x-www-form-urlencoded;charset=UTF-8"})
    @POST("uapws/service/nc.ws.base.intf.IBusiPDABillService")
    Call<String> getOnhandnum12(@Body String s);

    /**
     * 5.采购订单
     * @param s getOrder ddh
     * @return
     */
    @Headers({"Content-Type:application/x-www-form-urlencoded;charset=UTF-8"})
    @POST("uapws/service/nc.ws.base.intf.IBusiPDABillService")
    Call<String> getOrder12(@Body String s);
}
